package com.example.multithread.chapter01;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.util.concurrent.Callable;

/**
 * @ClassName CallableExample
 * @Description
 * @Author leejiliang
 * @DateTime 2020/4/28 3:37 PM
 * @Version 1.0
 */
public class CallableExample implements Callable {
	private final Logger log = LoggerFactory.getLogger(CallableExample.class);
	@Override
	public Object call() throws Exception {
		Thread.sleep(1000);
		String name = Thread.currentThread().getName();
		log.info(name);
		return name;
	}
}
